<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!-- 引入标签库-->
<%@ include file="/pages/inc/taglibs.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8;IE=7; IE=EDGE">
<title>打印处理签</title>
<%@ include file="/pages/inc/printHeader.jsp" %>
	<script type="text/javascript">
		$(function() {
			/*
			 * Initialise print preview plugin
			 */
			$('a.print-preview').printPreview();

			// Add keybinding (not recommended for production use)
			$(document).bind('keydown', function(e) {
				var code = (e.keyCode ? e.keyCode : e.which);
				if (code == 80 && !$('#print-modal').length) {
					$.printPreview.loadPrintPreview();
					return false;
				}
			});
		});
	</script>
		<style type="text/css">
/*打印按钮样式start  */
	.printButton {
		font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
		position: fixed; right: 15%; top: 5%;
		font-size: 1.5em;
		text-transform: uppercase;
		padding: 0;
		width: 90px;
		height:35px;
		margin-left: -100px;
		border-radius: 10px;
		color: white;
		text-shadow: -1px -1px 1px rgb(33,77,166);
		border: 5px solid transparent;
		border-bottom-color: rgb(33,77,166);
		background: rgb(51,119,255);
		cursor: pointer;
		text-align: center;
	}
	.printButton:hover {
		background: rgb(65,154,235);
		margin-top: -1px;
	}
	.printButton:active {
		border-bottom-width: 0;
		margin-top: 5px;
	}
	.printButton a{
		width: 90;
		height:58;
	}
	/*打印按钮样式end  */
	</style>
</head>
<body style="margin: 0;padding: 0;">

<!--打印按钮  -->
<a id="print-button" class="print-preview printButton">打印</a>
<!--打印时隐藏按钮样式  -->
<style type="text/css" media="print">#print-button{display: none;}</style>

<!--打印样式必须放入body内  -->
<style type="text/css">
	
	/*自定义样式start  */
	#docIssueTable{
		margin-top: 1em;
		border-top: solid 1px red;
		border-left: solid 1px red;
		width: 100%;
		margin:0;
		padding:0;
		border-collapse:collapse;
		border-spacing:0;
	}
	#docIssueTable td,th{
		border-right: solid 1px red;
		border-bottom: solid 1px red;
		padding: 0.5em;
	}
	.fontTitle{
		color: red;
		margin: 1em 0;
		text-align: center;
		font-size: 24px;
		font-weight: 700;
		font-family: 华文中宋;
	}
	.fontExplain{
		color: red;
		font-size: 24px;
		font-weight: 500;
		font-family: 黑体;
	}
	.fontValue{
		font-size: 20px;
		font-weight: 200;
		font-family: 宋体;
	}
	.inlineDiv{
		display:inline-block;
		*display: inline;
		zoom:1;
		vertical-align: top;
	}
	.redColor{
		color: red;
	}
	.paddingDiv{
		padding-top: 4px;
	}
	.tdExplain{
		width: 16%;
		text-align: center;
	}
	.td34pc{
		style="width: 34%;
	}
	.liNote{
		list-style-type:none;margin: 0;
	}
	.spaceSpan{
	display:inline-block;
	*display: inline;
	zoom:1;
	width: 2em;
	margin: 0;
	padding: 0;
}
	/*自定义样式end  */
</style>

<div style="width: 650px;margin: auto;padding: 40px;">
	<div class="fontTitle"> 收 文 阅 办 单 </div>
	<table id="docIssueTable">
		<tr>
			<td class="tdExplain">
				<span class="fontValue redColor">来文机关</span>
			</td>
			<td class="td34pc">
				<span class="fontValue"><c:out value='${docIssue.dispatchOrg}'/></span>
			</td>
			<td class="tdExplain">
				<span class="fontValue redColor">来文编号</span>
			</td>
			<td class="td34pc">
				<span class="fontValue"><c:out value='${docIssue.displayNumber}'/></span>
			</td>
		</tr>
		<tr>
			<td class="tdExplain">
				<span class="fontValue redColor">编号</span>
			</td>
			<td class="td34pc">
				<span class="fontValue"><c:out value='${docIssue.displayNumberReceive}'/></span>
			</td>
			<td class="tdExplain">
				<span class="fontValue redColor">登记日期</span>
			</td>
			<td class="td34pc">
				<span class="fontValue"><fmt:formatDate value="${docIssue.createTime}" pattern="yyyy-MM-dd" /></span>
			</td>
		</tr>
		<tr>
			<td class="tdExplain">
				<span class="fontValue redColor">公文标题</span>
			</td>
			<td colspan="3" style="width: 68%;">
				<span class="fontValue"><c:out value='${docIssue.docName}' /></span>
			</td>
		</tr>
		<tr>
			<td colspan="4" style="padding: 0;">
				<table cellpadding="0" cellspacing="0" width="100%" style="margin: 0;">
					<tr>
						<td style="width: 5%;height: 130px;"><span class="fontValue redColor">领导批示</span></td>
						<td style="width: 95%;border-right: none;height: 130px;vertical-align: top;">
						<span class="fontValue">
							<ul  style="margin: 5px 0;padding-left: 0.5em;">
									<c:forEach items="${signNote }" var="note">
										<fieldset style="width: 98%;">
										<li class="liNote">${note.personName } <fmt:formatDate value="${note.noteTime}" pattern="yyyy-MM-dd HH:mm:ss" /><c:if test="${!empty  note.docNoteContent}">:${note.docNoteContent}</c:if></li>
										</fieldset>
									</c:forEach>
								</ul>
						</span>
						&nbsp;
						</td>
					</tr>
					<tr>
						<td style="width: 5%;height: 130px;"><span class="fontValue redColor">部门负责人意见</span></td>
						<td style="width: 95%;border-right: none;height: 130px;vertical-align: top;">
						<span class="fontValue">
							<ul  style="margin: 5px 0;padding-left: 0.5em;">
									<c:forEach items="${deptLeaderNote }" var="note">
										<li class="liNote">${note.personName } <fmt:formatDate value="${note.noteTime}" pattern="yyyy-MM-dd HH:mm:ss" /><c:if test="${!empty  note.docNoteContent}">:${note.docNoteContent}</c:if></li>
									</c:forEach>
								</ul>
						</span>
						&nbsp;
						</td>
					</tr>
					<tr>
						<td style="width: 5%;height: 130px;"><span class="fontValue redColor">拟办意见</span></td>
						<td style="width: 95%;border-right: none;height: 130px;vertical-align: top;">
							<span class="fontValue">
								<ul  style="margin: 5px 0;padding-left: 0.5em;">
									<c:forEach items="${proposedNote }" var="note">
										<li class="liNote">${note.personName } <fmt:formatDate value="${note.noteTime}" pattern="yyyy-MM-dd HH:mm:ss" /><c:if test="${!empty  note.docNoteContent}">:${note.docNoteContent}</c:if></li>
									</c:forEach>
								</ul>
							</span>
							&nbsp;
						</td>
					</tr>
					<tr>
						<td style="width: 5%;border-bottom: none;height: 130px;"><span class="fontValue redColor">办理情况</span></td>
						<td style="width: 95%;border-right: none;border-bottom: none;height: 130px;vertical-align: top;">
						<span class="fontValue">
							<ul style="margin: 5px 0;padding-left: 0.5em;">
									<c:forEach items="${discussionNote }" var="note" varStatus="status">
								
									
										<c:if test="${note.sfActionId eq '1' }">
											<c:if test="${!status.first }">
												</ul></fieldset>
											</c:if>
											<fieldset style="width: 98%;margin-top: 10px;">
    										<legend>${note.deptName }</legend>
    										<ul style="margin: 5px 0;padding-left: 0.8em;width: 100%;">
										</c:if>
										<li class="liNote" style="margin-top: 1em;width: 100%;">${note.docNoteContent}</li>
										<li class="liNote" style="width:100%;"><span class="spaceSpan"></span><span class="spaceSpan"></span>${note.personName } <span class="spaceSpan"></span><fmt:formatDate value="${note.noteTime}" pattern="yyyy-MM-dd HH:mm:ss" /></li>
										<c:if test="${status.last}">
											</ul></fieldset>
										</c:if>
									
									
									</c:forEach>
									</ul>
						</span>
						&nbsp;
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<%-- <tr>
			<td colspan="4" style="padding: 0;">
				<table cellpadding="0" cellspacing="0" width="100%" style="margin: 0;">
					<tr>
						<td>
							<span class="fontValue redColor">登记人：</span>
							<span class="fontValue"><c:out value='${docIssue.drafter}'/></span>
						</td>
						<td colspan="3" style="border-right: none;">
							<span class="fontValue redColor">主题词：</span>
							<span class="fontValue"></span>
						</td>
					</tr>
					<tr>
						<td style="border-bottom: none;">
							<span class="fontValue redColor">缓急：</span>
							<span class="fontValue"><c:out value='${docIssue.emergencyCode}'/></span>
						</td>
						<td style="border-bottom: none;">
							<span class="fontValue redColor">密级：</span>
							<span class="fontValue"><c:out value='${docIssue.secretCode}'/></span>
						</td>
						<td style="border-right: none;border-bottom: none;">
							<span class="fontValue redColor">归档分类：</span>
							<span class="fontValue">
								<c:choose>
									<c:when test="${'001' eq docIssue.archiveCategoryId}">培训中心</c:when>
									<c:when test="${'002' eq docIssue.archiveCategoryId}">技能鉴定站</c:when>
									<c:when test="${'003' eq docIssue.archiveCategoryId}">烟草学会</c:when>
									<c:when test="${'004' eq docIssue.archiveCategoryId}">整顿办</c:when>
									<c:when test="${'005' eq docIssue.archiveCategoryId}">离退办</c:when>
									<c:when test="${'006' eq docIssue.archiveCategoryId}">国烟办通报</c:when>
									<c:when test="${'007' eq docIssue.archiveCategoryId}">签报</c:when>
								</c:choose>
							</span>
						</td>
					</tr>
				</table>
			</td>
			
		</tr> --%>
					<tr>
						<td colspan="4">
							<span class="fontValue redColor">缓急：</span>
							<span class="fontValue"><c:out value='${docIssue.emergencyCode}'/></span>
						</td>
						<%-- <td colspan="2">
							<span class="fontValue redColor">密级：</span>
							<span class="fontValue"><c:out value='${docIssue.secretCode}'/></span>
						</td> --%>
					</tr>
					<tr>
						<td colspan="2">
							<span class="fontValue redColor">登记人：</span>
							<span class="fontValue"><c:out value='${docIssue.drafter}'/></span>
						</td>
						<td colspan="2">
							<span class="fontValue redColor">归档分类：</span>
							<span class="fontValue"><c:out value='${docIssue.archiveCategoryName}'/></span>
						</td>
					</tr>
					
	</table>
</div>
<div id="signFormDiv"></div>
<%-- <script type="text/javascript">
<%@ include file="/pages/jsp/docIssue/docIssueShow.js" %>
</script> --%>

</body>
</html>